package com.example.springmvcproject.Vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CreditVo {
    @NotNull(message = "卡号不能为空")
    @Digits(integer = 18,fraction = 0,message = "卡号需要为18位")
    private Long creditNum;
    @NotNull(message = "卡号不能为空")
    private Integer bankId;
    @NotNull(message = "还款时间不能为空")
    private Long repayTime;
    @NotNull(message = "还款金额不能为空")
    @DecimalMax(value = Double.MAX_VALUE+"",message = "输入的金额过大")
    @DecimalMin(value = "0.0",message = "还款金额不能小于0")
    private Double repayAmount;

    @Size(min = 1,max = 100,message = "备注需要在1~100个字符之间")
    private String remarks;
}
